package com.ykg.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("作业委托单")
@ToString
public class Entrust {
    private String entrustId;
    private Long ownerId;
    private Long shipId;
    private String listId;
    private String receiver;
    /**
     * 0：未处理
     * 1：跑剁开始
     * 2：跑垛结束
     * 3：分配皮带开始
     * 4：分配皮带结束
     * 5：卸货开始
     * 6：卸货结束
     * */
    private int state;
    private Date date;
    /**
     * 0：开始
     * 流动机械部或者装卸作业部完成则+1，
     * 2：清仓结束
     * 3：流程结束
     */
    private int endState;

    public Entrust(String entrustId, Long ownerId, Long shipId, String listId, int state, int endState) {
        this.entrustId = entrustId;
        this.ownerId = ownerId;
        this.shipId = shipId;
        this.listId = listId;
        this.state = state;
        this.endState = endState;
    }
}
